package com.javajun.endofterm.repository;

import com.javajun.endofterm.common.CommonRepository;
import com.javajun.endofterm.entity.ExpressDelivery;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Author: Xiong Limin
 * Date: 2020-12-03-11:31 下午
 */
@Repository
public interface ExpressDeliveryRepository extends CommonRepository<ExpressDelivery, Integer> {
    long countByWhetherPickUp(Integer num);

    Page<ExpressDelivery> findByDomitoryId(Pageable pageable, Integer domiId);

    int countByWhetherPickUpAndDomitoryId(int i, int domiId);

    int countByDomitoryId(int domiId);
}
